#coding:utf-8
from common import saveReport

__author__ = 'yangxianming'

from sys import argv
import importlib

#外部调用
case_name = argv[1]
case_id = argv[2]
batch_No = argv[3]
m = importlib.import_module("case." + case_name)
r1, r2 = m.case()
testResult = str(case_name) + ": " + str(r2[0])
#远程保存测试结果
#调试代码,开始
# saveReport.to_remote("49", "20220613142009689S1364", 1, "测试结果", "预期结果", 0)
#调试代码,结束
saveReport.to_remote(case_id, batch_No, r1, testResult, r2[1], 0)